import 'package:flutter/material.dart';
import 'package:flutter_projectname_getx/page/log/log_view.dart';
import 'package:get/get.dart';

import 'index_logic.dart';

class IndexPage extends StatefulWidget {
  @override
  _IndexPageState createState() => _IndexPageState();
}

class _IndexPageState extends State<IndexPage> {
  final IndexLogic logic = Get.put(IndexLogic());

  @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: Center(
          child: InkWell(
            child: Text("index"),
            onTap: (){
              Get.to(()=>LogPage());
            },
          ),
        ),
      );
    }

  @override
  void dispose() {
    Get.delete<IndexLogic>();
    super.dispose();
  }
}